package my.dao.impl.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import my.dao.DaoException;
import my.dao.RowMapper;

public class DateRowMapperImpl implements RowMapper<java.util.Date> {
	
	
	private static DateRowMapperImpl instance=new DateRowMapperImpl();
	
	public static DateRowMapperImpl getInstance(){
		return instance;
	}
	
	private DateRowMapperImpl(){}

	public java.util.Date currRow2Obj(ResultSet rs) throws SQLException,
			DaoException {		
		return rs.getTimestamp(1);
	}

}
